package cate.common.table.activity.weekcard.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class WeekCardRow extends ERow {
    @NoteField("活动配置ID")
    public int configId;
    @NoteField("功能ID")
    public int funcId;
    @NoteField("奖励")
    public String reward;
    @NoteField("每日奖励")
    public String dailyReward;
    //    @NoteField("价格")
//    public long price;
    @NoteField("充值项")
    public int payId;
    @NoteField("邮件")
    public int mailId;
    @NoteField("购买消耗")
    public String cost;
    @NoteField("消耗类型")
    public int buyType;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("ID");
        this.configId = xrw.getInteger("活动配置ID");
        this.funcId = xrw.getInteger("功能ID");
        this.reward = xrw.getString("奖励");
        this.dailyReward = xrw.getString("每日奖励");
//        this.price = xrw.getLong("价格");
        this.payId = xrw.getInteger("充值项", 0);
        this.mailId = xrw.getInteger("邮件", 0);
        this.cost = xrw.getString("购买消耗");
        this.buyType = xrw.getInteger("消耗类型");
    }
}
